package DMSXL._2023Before.String_;

/*public class dynamicPassword_ {
    public static void main(String[] args) {
        Solution solution = new Solution();
        String s = "lrloseumgh";
        System.out.println(solution.dynamicPassword(s,6));
    }
}
class Solution {
    public String dynamicPassword(String password, int target) {
        char[] ch = password.toCharArray();
        char[] temp = new char[target];
        for (int i = 0; i < target; i++) {
            temp[i] = ch[i];
        }
        for (int i = 0; i< ch.length - target; i++) {
            ch[i] = ch[i + target];
        }
        for (int i = 0; i < target; i++) {
            ch[ch.length - target + i] = temp[i];
        }
        return String.valueOf(ch);
    }
}*/